# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-reply
pkgver=1.204
pkgrel=5
pkgdesc="Reply to a Message "
arch=('any')
url="https://search.cpan.org/dist/Email-Reply"
license=('GPL' 'PerlArtistic')
depends=('perl-email-address>=1.80' 'perl-email-mime-creator>=1.41' 'perl-email-mime>=1.82' 'perl-email-abstract>=2.01' 'perl-email-mime-modifier>=1.42')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/R/RJ/RJBS/Email-Reply-$pkgver.tar.gz)
sha256sums=('ba4fd80ac5017d6d132e0358c786b0ecd1c7adcbeee5c19fb3da2964791a56f0')

build() {
  cd  "$srcdir"/Email-Reply-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Email-Reply-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
